package io.gitee.duxiuhuan.mailbox.service.inter;

import io.gitee.duxiuhuan.mailbox.database.entries.MessageInfo;
import org.springframework.web.servlet.mvc.method.annotation.StreamingResponseBody;

import java.util.List;

public interface AIRequest<T> {
    // 带 apiKey 和 model 的请求方法
    T request(String model, List<MessageInfo> messageInfoList);
    
    StreamingResponseBody requestStream(String model, List<MessageInfo> messageInfoList, Long userId,String tableName);
}
